package kz.home;

import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.*;

/**
 * <strong>title</strong>
 * <p> describe
 *
 * @author: Danik <br>
 * Date: 10.07.2009  <br>
 * Time: 10:53:09  <br>
 */
public class Test1 extends MIDlet {
    private final static Command CMD_EXIT = new Command("Exit", Command.EXIT, 1);
    private Display display;
    private Form mainForm = new Form("Gauge Demo");
    private ChoiceGroup bandCg;


    protected void startApp() throws MIDletStateChangeException {
        // please start do something
        bandCg = new ChoiceGroup("Choose a Band", Choice.MULTIPLE);
        bandCg.setFitPolicy(Choice.TEXT_WRAP_ON);
        bandCg.append("проверка длинных предлинных предложений", null);
        bandCg.append("проверка длинных предлинных предложений", null);
        bandCg.append("проверка длинных предлинных предложений", null);
        
        //mainForm.append(new Gauge("Interactive", true, 10, 0));
        mainForm.append(bandCg);

        display = Display.getDisplay(this);
        display.setCurrent(mainForm);        
    }

    protected void pauseApp() {
        // do nothing
    }

    protected void destroyApp(boolean b) throws MIDletStateChangeException {
        // do something
    }
}
